package com.bs.blogspace.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    // 主键
    private String commentId;
    private Integer essayId;
    private String userName;
    private String phone;
    private String content;
    // 评论目标
    private Map<String,String> target;
    // 评论目标的 KEY
    private String type;
    // 二级评论的用户名
    private String commentUserName;
    // 评论集合
    private List<Comment> children;
    private LocalDateTime commentTime;


}
